﻿<%@ Page Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true" CodeBehind="CorpChangeRYSelect.aspx.cs"
    Inherits="RN.ERP.Web.PersonChange.CorpChangeRYSelect" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" type="text/css" href="../Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.all.js"></script>
    <script type="text/javascript" src="../Scripts/EnterpriseCorpList.js"></script>
    <script type="text/javascript">
        function ShowCorpView(EmpGuid, EmpName) {
            var args = new Object();
            args.EmpGuid = EmpGuid;
            args.EmpName = EmpName;
            window.parent.OnClientCloseGetEmp(args);
            window.parent.$.ligerDialog.close(); ////关闭dialog
            parent.$(".l-dialog,.l-window-mask").hide(); ////去除父窗体遮罩层

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListPersons" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td width="19" class="xx_m">
                <img src="../images/xx_l.jpg" width="19" height="33" />
            </td>
            <td width="24" class="xx_m">
                <img src="../images/xx_icon.jpg" width="24" height="33" />
            </td>
            <td width="1250" class="xx_m">
                人员列表
            </td>
            <td width="14">
                <img src="../images/xx_r.jpg" width="14" height="33" />
            </td>
        </tr>
        <tr>
            <td class="left_con">
                &nbsp;
            </td>
            <td colspan="2" style="padding-left: 6px; padding-right: 6px;" valign="top">
                <!--#人员列表-->
                <div>
                    <div class="xian">
                        <div class="about_title">
                            选择变更人员</div>
                    </div>
                    <asp:Panel ID="Panel1" runat="server" Style="margin-bottom: 5px;">
                        <table style="width: 100%; height: 40px; padding-bottom: 10px; padding-top: 10px;
                            background-color: #eaeaea; text-align: center;">
                            <tr>
                                <td width="50">
                                    人员姓名
                                </td>
                                <td width="110">
                                    <div class="s_input">
                                        <span class="input_l">
                                            <img src="../images/input_l.jpg" width="10" height="31" alt="" /></span> <span class="input_mm">
                                                <asp:TextBox ID="txtName" runat="server" Style="width: 200px; height: 31px; line-height: 31px;
                                                    border: 0; background: transparent"></asp:TextBox>
                                            </span><span class="input_r">
                                                <img src="../images/input_r.jpg" width="10" height="31" alt="" /></span>
                                    </div>
                                </td>
                                <td width="50">
                                    <div class="i-con-cn">
                                        <asp:Button ID="btnSearch" CssClass="xtbiao" runat="server" Text="查询" OnClick="btnSearch_Click" />
                                    </div>
                                </td>
                                <td width="">
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <telerik:RadGrid ID="ListPersons" runat="server" ShowStatusBar="True" AllowSorting="true"
                        AllowFilteringByColumn="false" CellSpacing="0" Culture="zh-CN" GridLines="None"
                        AllowPaging="true" AllowCustomPaging="true" OnNeedDataSource="ListPersons_NeedDataSource"
                        Width="100%">
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID" NoMasterRecordsText="暂无数据"
                            InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemDisplay="Top">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="true">
                            </RowIndicatorColumn>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                            <PagerStyle AlwaysVisible="True" />
                            <CommandItemTemplate>
                            </CommandItemTemplate>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridTemplateColumn DataField="ID" HeaderText="ID" UniqueName="ID" ReadOnly="true"
                                    Visible="false">
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn DataField="Name" HeaderText="人员姓名" HeaderStyle-HorizontalAlign="Center"
                                    ItemStyle-HorizontalAlign="Center" ItemStyle-Width="30%">
                                    <ItemTemplate>
                                        <span style="color: #43a9f5" onclick="ShowCorpView('<%#Eval("EmpGuid") %>','<%#Eval("Name")%>')">
                                            <%#Eval("Name")%></span>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="IDCard" DataType="System.String" HeaderText="证件号"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" SortExpression="IDCard"
                                    UniqueName="IDCard" ItemStyle-Width="50%">
                                </telerik:GridBoundColumn>
                                <telerik:GridCalculatedColumn SortExpression="Sex" HeaderText="性别" DataFields="Sex"
                                    Expression='{0}==1?"男":"女"' HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    ItemStyle-Width="20%">
                                </telerik:GridCalculatedColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true">
                            <Selecting AllowRowSelect="True"></Selecting>
                        </ClientSettings>
                        <PagerStyle AlwaysVisible="True" />
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                </div>
                <!--#企业列表结束-->
            </td>
            <td class="right_con">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="con_m">
                <img src="../images/left_bottom.jpg" width="19" height="24" alt="" />
            </td>
            <td colspan="2" class="con_m">
                &nbsp;
            </td>
            <td>
                <img src="../images/right_bottom.jpg" width="14" height="24" alt="" />
            </td>
        </tr>
    </table>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue" EnableShadow="true">
    </telerik:RadWindowManager>
    <asp:HiddenField ID="hdnUserGuid" runat="server" />
</asp:Content>
